package Demo.demo18;

public class Test {
    public static void main(String[] args) {
        Hero h = new Hero();
        h.name = "王保淞";
        h.hp = 100;
        h.attack = 15;
        h.defence = 10;
        h.weapon = "鸡巴";
        h.shuohua="好爽";

        Monster m = new Monster();
        m.name = "向德才";
        m.hp = 100;
        m.attack = 12;
        m.defence = 10;
        m.weapon="屁股";

        System.out.println("---------");
        h.fight(m);
        m.responses(h);
        System.out.println("---------");
    }
}
